package com.neu.his.entity.VO.SystemManage01.DepartmentManage;

import com.alibaba.fastjson.JSON;
import com.neu.his.entity.Department;
import lombok.Data;

/**
 * Description: neu-his
 * <p>
 * Created by 31316 on 2020/7/15 12:39
 */
@Data
public class DepartmentVO {
    private Long id;
    String deptCode,deptName,deptCategory,deptType;
    public void copy(Department department){
        setId(department.getId());
        setDeptType(department.getDepartmentType().getDeptType());
        setDeptName(department.getDeptName());
        setDeptCode(department.getDeptCode());
        setDeptCategory(department.getDepartmentType().getDeptCategory());
    }
    public String toString(){
        return JSON.toJSONString(this);
    }
}
